package com.cg.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UpdateInheritorDTO {
    @NotBlank(message = "传人名称不为空")
    @Size(max = 10,message = "名称最长不超过10个字符")
    private String inheritorName;

    private String picture;


    @NotNull(message = "id不为空")
    private Long inheritorId;

    @Size(max = 100,message = "介绍最长不超过100个字符")
    private String intro;
}
